/* 绘图容器 */
canvas {
  border: 1px solid;
}
/* 形状选择器 */
.shape {
  display: flex;
}
.shape li {
  height: 50px;
  width: 50px;
  font-size: 14px;
  font-weight: bold;
  background: #5bd219;
  color: #fff;
  cursor: pointer;
  margin-left: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 边框 */
.border-style {
  display: flex;
}
.border-style li {
  height: 50px;
  width: 50px;
  font-size: 14px;
  font-weight: bold;
  background: #ffbc00;
  color: #fff;
  cursor: pointer;
  margin-left: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 线条颜色，宽度 */
.line-style {
  display: flex;
  justify-content: space-around;
}
/* 选中样式 */
.typeactive {
  border: 1px solid #ccc;
}
/* 文件控制 */
.file-control {
  display: flex;
}
.file-control li {
  height: 50px;
  width: 50px;
  font-size: 14px;
  font-weight: bold;
  background: #5bd219;
  color: #fff;
  cursor: pointer;
  margin-left: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.container {
  width: 250px;
  height: 60px;
  position: fixed;
  left: 15px;
  top: 70px;
}
.create {
  position: relative;
}
/* 调整画板尺寸 */
.createPal {
  display: none;
  position: absolute;
  top: 50px;
  background: #ccc;
  padding: 20px 20px 0 20px;
}
.createPal>input {
  padding: 2px 15px;
  display: block;
  margin: 0 auto;
}

.container h2 {
  width: 100%;
  height: 60px;
  font-size: 22px;
  text-align: center;
  color: #ff377e;
  font-weight: normal;
  line-height: 60px;
  border-bottom: 1px solid #000;
}

.container h3 {
  width: 100%;
  height: 30px;
  font-size: 18px;
  text-align: center;
  color: #41b1ff;
  font-weight: normal;
  line-height: 30px;
}

.row {
  width: 100%;
  height: auto;
  background-color: rgba(192, 192, 192, 0.5);
  overflow: hidden;
}

.type {
  width: 100%;
  height: auto;
  margin: 20px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #fff;
}

.type:after {
  content: "";
  display: block;
  clear: both;
}

.type li {
  float: left;
  width: 90px;
  height: 45px;
  margin: 0 auto;
  background-color: #0078ff;
  color: #fff;
  font-size: 18px;
  line-height: 45px;
  text-align: center;
  margin-bottom: 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.7s;
}

.type li:hover {
  /* background-color: #fff;
            color: #0078ff;
            box-shadow: 0 0 10px rgba(0, 120, 255, 0.77); */
}

.type .typeactive {
  background-color: #fff;
  color: #0078ff;
  box-shadow: 0 0 10px rgba(0, 120, 255, 0.77);
}

.type li:nth-child(odd) {
  margin-left: 25px;
}

.type li:nth-child(even) {
  margin-left: 20px;
}

.style .styleactive {
  color: #ffa800;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(255, 232, 95, 0.77);
}

.style li:nth-child(1) {
  margin-left: 25px;
}

.style li:nth-child(2) {
  margin-left: 20px;
}

.poly {
  position: relative;
}

.bian {
  position: absolute;
  left: 60px;
  top: 0;
  width: 85px;
  height: auto;
  border-radius: 5px;
  background-color: #ec494e;
  overflow: hidden;
  overflow: hidden;
  transform: scale(1.2);
  display: none;
}

.bian span {
  display: block;
  float: left;
  width: 40px;
  height: 45px;
  font-size: 16px;
  color: #fff;
  text-align: center;
  line-height: 40px;
  color: #fff;
  transition: all 0.7s;
}

.bian input {
  float: left;
  width: 45px;
  height: 35px;
  margin-top: 5px;
  border: 1px solid #fff;
  box-sizing: border-box;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  color: #fff;
  background: #ec494e;
  border-radius: 3px;
  box-shadow: 0 0 0 4px #fff inset;
  transition: all 0.7s;
}

.xinjian {
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: 165px;
  border-radius: 5px;
  background-color: #ec494e;
  box-shadow: 0 0 15px rgba(236, 73, 78, 0.76);
  cursor: default;
  display: none;
}

.xinjian:hover {
  color: #fff;
}

.xinjian_before {
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
  height: 20px;
  color: #fff;
  line-height: 16px;
  text-indent: -1px;
  font-size: 30px;
  border: 1px solid #fff;
  transform: rotate(45deg);
  border-radius: 50%;
  cursor: pointer;
}

.xinjian h6 {
  width: 100%;
  height: 50px;
  color: #fff;
  line-height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: normal;
}

#ding {
  width: 60px;
  height: 30px;
  font-size: 14px;
  border-radius: 3px;
  color: #fff;
  background-color: #0078ff;
  border: 0;
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 120, 255, 0.5);
}

.xinjian_width,
.xinjian_height {
  width: 85px;
  height: 40px;
  margin-left: 5px;
  border-radius: 5px;
  margin-bottom: 20px;
  background-color: #ffbc00;
}

.xinjian_width:hover,
.xinjian_height:hover {
  background-color: #fff;
  color: #000;
}

.xinjian_width span,
.xinjian_height span {
  float: left;
  width: 30px;
  height: 100%;
  font-size: 16px;
  text-align: center;
  line-height: 40px;
}

.xinjian_width input,
.xinjian_height input {
  float: left;
  margin-top: 5px;
  width: 50px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  font-size: 14px;
  border: 1px solid #ffbc00;
  box-sizing: border-box;
}

.box {
  float: left;
  width: 90px;
  height: auto;
  background-color: #ec494e;
  overflow: hidden;
  border-radius: 5px;
  transition: all 0.7s;
}

.box {
  margin-left: 25px;
}

.linewidth {
  margin-left: 20px;
}

.box:hover {
  background-color: #fff;
}

.box span {
  display: block;
  float: left;
  width: 40px;
  height: 45px;
  font-size: 16px;
  color: #fff;
  text-align: center;
  line-height: 40px;
  color: #fff;
  transition: all 0.3s;
}

.box input {
  float: left;
  width: 45px;
  height: 35px;
  margin-top: 5px;
  border: 1px solid #fff;
  box-sizing: border-box;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
  color: #fff;
  background: #ec494e;
  border-radius: 3px;
  box-shadow: 0 0 0 4px #fff inset;
  transition: all 0.3s;
}

.box2 span {
  width: 55px;
}

.box2 input {
  width: 140px;
}
/* 工具栏 */
.toolbar {
  display: flex !important;
}
.space {
  float: left;
  width: 100%;
  height: 0;
  border-bottom: 1px solid #fff;
  margin: 20px 0;
}
.color-box-black {
  background-color: black;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.color-box-red {
  background-color: red;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.color-box-yellow {
  background-color: yellow;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.color-box-green {
  background-color: green;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.color-box-blue {
  background-color: blue;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
